﻿@model Everynet.Models.PlanModel
@{
    ViewBag.Title = "CreateNewPlanName";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
   
}
<script src="../../ckeditor/ckeditor.js" type="text/javascript">
</script>
<h2>
    Create New PlanName</h2>
<p>
    @Html.ActionLink("Dashboard", "Dashboard", "Admin")
</p>
@using (Html.BeginForm())
{
   
    <fieldset>
        <legend>Create PlanName</legend>
        @Html.ValidationSummary(true, "Please correct the errors and try again.")
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Name, new { maxlength = "30" })
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PlanTypes)
        </div>
        <div class="editor-field">
            @Html.DropDownList("PlanTypes")
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.RedirectUrl)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.RedirectUrl, new { maxlength = "30" })
            @Html.ValidationMessageFor(model => model.RedirectUrl)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Agreement)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Agreement)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<script>

    // This call can be placed at any point after the
    // <textarea>, or inside a <head><script> in a
    // window.onload event handler.

    // Replace the <textarea id="editor"> with an CKEditor
    // instance, using default configurations.

    CKEDITOR.replace('Agreement');

</script>
<div>
    @Html.ActionLink("Back to List", "PlanName")
</div>
